<template>
  <div>
     <h4 v-text="value"></h4>
  </div>
</template>

<script>
export default {
  data () {
    return {
      arr: ['小花', '小明', '小可爱', '小王'],
      value: ''
    }
  },
  created () {
    this.value = this.arr[Math.floor((Math.random() * this.arr.length))]
  }
}
</script>

<style>

</style>
